package com.scm.biz.result;

import java.util.List;

import com.scm.biz.bean.Constant;
import com.scm.biz.bean.Factory;
import com.scm.biz.bean.FactoryContact;

public class FactoryResult extends Factory {
	
	private static final long serialVersionUID = -2374171085307019578L;
	//省中文名称
	private String province;
	//市中文名称
	private String city;
	//区县中文名称
	private String area;
	//联系人列表
	private List<FactoryContact> factoryContacts;
	//梭织类型
	private List<Constant> tattingStyle;
	//针织类型
	private List<Constant> wovenStyle;
	//毛衣类型
	private List<Constant> sweaterStyle;
	
	public FactoryResult() {
		
	}

	public FactoryResult(Factory factory) {
		setId(factory.getId());
		setCode(factory.getCode());
		setName(factory.getName());
		setProvince_id(factory.getProvince_id());
		setCity_id(factory.getCity_id());
		setArea_id(factory.getArea_id());
		setDetail_address(factory.getDetail_address());
		setPerson_amount(factory.getPerson_amount());
		setSale_target(factory.getSale_target());
		setCooperation_condition(factory.getCooperation_condition());
		setEstimate_report(factory.getEstimate_report());
		setOrigin_name(factory.getOrigin_name());
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public List<FactoryContact> getFactoryContacts() {
		return factoryContacts;
	}

	public void setFactoryContacts(List<FactoryContact> factoryContacts) {
		this.factoryContacts = factoryContacts;
	}

	public List<Constant> getTattingStyle() {
		return tattingStyle;
	}

	public void setTattingStyle(List<Constant> tattingStyle) {
		this.tattingStyle = tattingStyle;
	}

	public List<Constant> getWovenStyle() {
		return wovenStyle;
	}

	public void setWovenStyle(List<Constant> wovenStyle) {
		this.wovenStyle = wovenStyle;
	}

	public List<Constant> getSweaterStyle() {
		return sweaterStyle;
	}

	public void setSweaterStyle(List<Constant> sweaterStyle) {
		this.sweaterStyle = sweaterStyle;
	}

	@Override
	public String toString() {
		return "FactoryResult [province=" + province + ", city=" + city + ", area=" + area + ", factoryContacts="
				+ factoryContacts + ", tattingStyle=" + tattingStyle + ", wovenStyle=" + wovenStyle + ", sweaterStyle="
				+ sweaterStyle + "]";
	}
	
}
